/**
 * FieldInfo类用于描述数据库字段与Java类字段之间的映射信息
 * 它提供了关于字段名称、属性名称、SQL类型、Java类型、字段注释以及是否自动递增等信息
 */
package com.xyh.bean;

public class FieldInfo {

    /**
     * 数据库中的字段名
     */
    private String fieldName;

    /**
     * Java类中的属性名
     */
    private String propertyName;

    /**
     * 字段在数据库中的SQL类型
     */
    private String sqlType;

    /**
     * 字段在Java类中的类型
     */
    private String javaType;

    /**
     * 字段的注释或描述信息
     */
    private String comment;

    /**
     * 标识字段是否为自动递增类型
     */
    private Boolean isAutoIncrement;

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getPropertyName() {
        return propertyName;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    public String getSqlType() {
        return sqlType;
    }

    public void setSqlType(String sqlType) {
        this.sqlType = sqlType;
    }

    public String getJavaType() {
        return javaType;
    }

    public void setJavaType(String javaType) {
        this.javaType = javaType;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Boolean getAutoIncrement() {
        return isAutoIncrement;
    }

    public void setAutoIncrement(Boolean autoIncrement) {
        isAutoIncrement = autoIncrement;
    }

    @Override
    public String toString() {
        return "FieldInfo{" +
                "fieldName='" + fieldName + '\'' +
                ", propertyName='" + propertyName + '\'' +
                ", sqlType='" + sqlType + '\'' +
                ", javaType='" + javaType + '\'' +
                ", comment='" + comment + '\'' +
                ", isAutoIncrement=" + isAutoIncrement +
                '}';
    }
}
